/**
 * 实训室耗材审批管理 api 封装
 *
 * @Author:    王俊权
 * @Date:      2024-11-06 10:32:23
 * @Copyright  🐂🐎bloc
 */
import {postRequest, getRequest, getDownload} from '/src/lib/axios';

export const consumablesPurchaseApprovalApi = {

  /**
   * 分页查询  @author  王俊权
   */
  queryPage : (param) => {
    return postRequest('/consumablesPurchaseApproval/queryPage', param);
  },

  /**
   * 增加  @author  王俊权
   */
  add: (param) => {
      return postRequest('/consumablesPurchaseApproval/add', param);
  },

  /**
   * 修改  @author  王俊权
   */
  update: (param) => {
      return postRequest('/consumablesPurchaseApproval/update', param);
  },


  /**
   * 删除  @author  王俊权
   */
  delete: (id) => {
      return getRequest(`/consumablesPurchaseApproval/delete/${id}`);
  },

  /**
   * 批量删除  @author  王俊权
   */
  batchDelete: (idList) => {
      return postRequest('/consumablesPurchaseApproval/batchDelete', idList);
  },
    /**
   * 审批  @author  lyy
   */
  approval: (param) => {
      return postRequest(`/consumablesPurchaseApproval/approval`,param);
  },
    /**
     * 上传  @author
     */
    uploadExcel: (param) => {
        return postRequest(`/consumablesPurchaseApproval/uploadExcel`,param);
    },



};
